package models

import (
	"time"
)

type Article struct {
	Id           int64     `xorm:"pk autoincr" json:"articleId"`
	Cid          int64     `xorm:"comment('分类ID')" json:"articleCid"`
	Title        string    `xorm:"comment('标题')" json:"articleTitle"`
	Slug         string    `xorm:"comment('短网址')" json:"articleSlug"`
	Text         string    `xorm:"text comment('文章内容')" json:"articleText"`
	Order        int64     `xorm:"comment('排序')" json:"articleOrder"`
	Views        int64     `xorm:"comment('阅读数')" json:"articleViews"`
	Likes        int64     `xorm:"comment('阅读数')" json:"articleLikes"`
	Created      time.Time `xorm:"created comment('创建时间')" json:"created"`
	Updated      time.Time `xorm:"updated comment('更新时间')" json:"updated"`
	Deleted      time.Time `xorm:"deleted comment('删除时间')" json:"-"`
	CategoryName string    `xorm:"-" json:"categoryName"`
	CreateTime   string    `xorm:"-" json:"createTime"`
}
